__author__ = 'AndreyKa'

from php4dvd.pages.page import Page
from selenium.webdriver.common.by import By


class MoviePage(Page):
    """
    This is description of the movie-page.
    """

    @property
    def remove_link(self):
        return self.driver.find_element(By.XPATH, ".//*[@alt='Remove']")

    @property
    def edit_link(self):
        return self.driver.find_element(By.XPATH, ".//*[@alt='Edit']")

    @property
    def photo_finder(self):
        return self.is_element_visible((By.XPATH, ".//*[@class='photo']"))

    @property
    def movie_info(self):
        return self.is_element_visible((By.XPATH, ".//*[@class='maininfo_full']"))
